// https://www.luogu.com.cn/problem/B2098
#include <stdio.h>

int exists[105];

int main() {
    int n, t=0;
    int arr[20000];
    scanf("%d", &n);
    for (int i=0; i<n; i++) {
        scanf("%d", &arr[t]);
        if (exists[arr[t]] == 0) {
            exists[arr[t]] = 1;
            t++;
        }
    }

    for (int i=0; i<t; i++) {
        printf("%d ", arr[i]);
    }
    return 0;
}
